package com.zhangshuo.common.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ScheduledFuture;

/**
 * Created by Administrator on 2017/6/9 0009.
 */
public class Schedule implements Runnable {
    public static ConcurrentHashMap<Integer ,ScheduledFuture> scheduledFutureMap = new ConcurrentHashMap<>();


    private int id ;

    public Schedule(int id){
        this.id = id;
    }

    Logger logger = LoggerFactory.getLogger(Schedule.class);
    @Override
    public void run() {
        logger.info(String.format("开始执行任务 %d .........................", id));
    }
}
